<!-- 院校管理 -->
<script lang="ts">
export default {
  name: "jfInstitutionIntroduction",
};
</script>
<template>
  <div class="page-box h100 display-flex czbj">
    <div>
      <dxtable :dataJson="dataJson"  :portUrl="portUrl" :qx="qx" ref="databale" sonRouter="addbjjfInstitutionIntroduction">
      </dxtable>
    </div>
  </div>
</template>
<script lang='ts' setup>
import dxtable from "../../components/util/dxtable.vue";
import { NImage } from "naive-ui";
import videoViewing from "../../components/util/videoViewing.vue";
import sort from "../../components/util/sort.vue";
import { dxget, dxpost, qurl, hf } from "../../util/index";
import { h, ref, reactive } from "vue";

const databale = ref()
const initeer = () => {
  databale.value.initDataExpose();
};
let dataJson = reactive([

{
    title: "院校logo",
    key: "cover",
    width:120,
    render(row) {
        if(row.cover){
          return h(NImage, { src: row.cover, "class": "jfimg imgjz cz" })
        }else{
          return '--'
        }
      
      }
  },
  {
    title: "院校名称",
    key: "name",
    search: true, // 是否在搜索栏展示
    ellipsis: {
      tooltip: true
    }
  },
  {
    title: "英文院校名称",
    key: "enName",
    search: true, // 是否在搜索栏展示
    ellipsis: {
      tooltip: true
    }
  }, 
  {
    title: "地区",
    key: "districtString",
    search: true, 
  }, 
  {
    title: "qs排名",
    key: "Qsranking",
  }, 
  {
    title: "咨询电话",
    key: "enquiryTelephone",
  }, 
  
  {
    title: "排序",
    width: 100,
    render(row) {
      row.databaseName = "jfInstitutionIntroduction";
      return h(sort, {
        row,
        onCallBack: () => {
          initeer();
        },
      });
    },
  },
  {
    title: "修改时间",
    key: "addTime",
    width: "200",
    type: "daterange",
  },
]);
let portUrl = "studyAbroad/jfInstitutionIntroduction";
const qx = {
  DeletePermissionID: "jfInstitutionIntroductiondel", //删除
  EditPermissionIdentifier: "jfInstitutionIntroductionbj", // 编辑
  NewPermissionIdentifier: "jfInstitutionIntroductionxz", // 新建
  ViewPermissionID: "jfInstitutionIntroductionck", // 查看
};



</script>
  
  
  